package com.ht.medicaltreatment.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.ht.medicaltreatment.R
import com.ht.medicaltreatment.bean.QueryOrderBean

class GroupQueryOrderAdapter : BaseQuickAdapter<QueryOrderBean.RowsBean, BaseViewHolder>(R.layout.item_group_order_layout) {
    override fun convert(holder: BaseViewHolder, item: QueryOrderBean.RowsBean) {
        holder.setText(R.id.tvCode,"${getItemPosition(item)+1}")
        holder.setText(R.id.tvName,item.name)
        if(item.checkSign == 0){
            holder.setText(R.id.tvState,"未核验")
        }else if(item.checkSign == 1){
            holder.setText(R.id.tvState,"核验中")
        }else if(item.checkSign == 2){
            holder.setText(R.id.tvState,"已核验")
        }
    }
}
